package com.rules.admin.controller;

import com.rules.admin.utils.ResultUtils;
import com.rules.admin.utils.Templet;
import com.rules.admin.utils.TempletRegister;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping({"/templet"})
public class TempletController {
   @RequestMapping(
      method = {RequestMethod.GET}
   )
   @ResponseBody
   public Map getTempletMes() {
      List<Templet> list = new ArrayList();
      Iterator var2 = TempletRegister.templetMes.values().iterator();

      while(var2.hasNext()) {
         Templet templet = (Templet)var2.next();
         list.add(templet);
      }

      return ResultUtils.getSuccessResultData(list);
   }
}
